<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        *{
            padding: 0;margin:0 ;
        }
        div{
            width: 500px;
            height: 500px;
            background-color: burlywood;
        }
    </style>

    
</head>
<body>

<button>show显示</button>
<button>hide隐藏</button>
<button>toggle切换</button>
<div></div>

    
    <script src="./jquery/jquery-3.6.0.min.js"></script>
    <script>
        $("button:nth-child(1)").click(function(){

          $("div").show(1000,"linear",function(){
              console.log("show结束了")
          })
           

        })
        $("button:nth-child(2)").click(function(){
            $("div").hide(1000,"linear",function(){
                console.log("hide结束了")
            })


        })
        $("button:nth-child(3)").click(function(){
            $("div").toggle(1000,"linear",function(){
                console.log("toggle结束了")
            })


        })
    </script>
</body>
</html>